import { createRouter, createWebHashHistory } from 'vue-router'
import Login from "@/views/Login.vue";
import SysMain from "@/views/SysMain.vue";
import MeetingMan from "@/views/DaliyMan/MeetingMan/MeetingMain.vue";
import Home from "@/views/Home.vue";
import BookingMan from "@/views/DaliyMan/MeetingMan/BookingMan.vue";
import MeetingBook from "@/views/DaliyMan/MeetingMan/MeetingBook.vue";
import MeetingRec from "@/views/DaliyMan/MeetingMan/MeetingRec.vue";
import MeetingSer from "@/views/DaliyMan/MeetingMan/MeetingSer.vue";
import MeetingSign from "@/views/DaliyMan/MeetingMan/MeetingSign.vue";
import Check from "@/views/My/Mycheck/Check.vue";
import Checkdone from "@/views/My/Mycheck/Checkdone.vue";
import Mynews from "@/views/My/Mynews.vue";


import Monthaccount from "@/views/Account/Monthaccount.vue";
import Appearsum from "@/views/Sum/Appearsum.vue";
import Foodsum from "@/views/Sum/Foodsum.vue";

import MaintenanceAnalysis from "@/views/Sum/Repairsum/MaintenanceAnalysis.vue";
import MaintenanceList from "@/views/Sum/Repairsum/MaintenanceList.vue";
import ChuChai from "@/views/Account/manage/ChuChai.vue";
import RiChang from "@/views/Account/manage/RiChang.vue";
import DocumentSelect from "@/views/My/DocumentSelect.vue";
import Contractors from "@/views/ManageMan/Shanggang/Contractors.vue";
import External from "@/views/ManageMan/Shanggang/External.vue";
import ExContract from "@/views/ManageMan/Shanggang/ExContract.vue";
import Contract from "@/views/ManageMan/Shanggang/Contract.vue";
import Holiday from "@/views/ManageMan/Shanggang/holiday.vue";
import Door from "@/views/ManageMan/Shanggang/door.vue";
import Documents from "@/views/ManageMan/Chujing/Documents.vue";
import Sumtime from "@/views/ManageMan/Chujing/Sumtime.vue";
import Relatives from "@/views/ManageMan/Chujing/Relatives.vue";
import Giftman from "@/views/ManageMan/Chujing/Giftman.vue";
import Signature from "@/views/ManageMan/Chujing/Signature.vue";
import Out from "@/views/ManageMan/Chujing/Out.vue";
import Attendance from "@/views/ManageMan/Chuqin/Attendance.vue";
import Goout from "@/views/ManageMan/Chuqin/Goout.vue";
import Overtime from "@/views/ManageMan/Chuqin/Overtime.vue";
import Police from "@/views/ManageMan/Chuqin/Police.vue";
import Leave from "@/views/ManageMan/Chuqin/Leave.vue";
import Cancelleave from "@/views/ManageMan/Chuqin/Cancelleave.vue";
import Wagesum from "@/views/ManageMan/Wage/Wagesum.vue";
import Jiaojieman from "@/views/ManageMan/Jiaojie/Jiaojieman.vue";
import Ligangman from "@/views/ManageMan/Jiaojie/Ligangman.vue";
import ForgetPassword from "@/views/ForgetPassword.vue";
import ChangePassword from "@/views/ChangePassword.vue";
import Pay from "@/views/Account/Butieman/Pay.vue";
import Overtimepay from "@/views/Account/Butieman/Overtimepay.vue";
import Gold from "@/views/Account/Butieman/Gold.vue";
import Externalstaff from "@/views/Account/Butieman/Externalstaff.vue";
import Paylist from "@/views/Account/Butieman/Paylist.vue";
import Register from "@/views/Register.vue";
const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login
  },
  {
    path:'/forgetpassword',
    component: ForgetPassword,
  },
  {
    path:'/changepassword',
    component: ChangePassword
  },
  {
    path:'/register',
    component: Register
  },
  {
    path:'/main',
    component: SysMain,
    //redirect:'/main/home',
    children: [
      {
        path:'home',
        component: Home
      }
    ]
  },

  {
    path:'/dailyman',
    component: SysMain,
    children:[
      {
        path:'meetingman',
        children:[
          {
            path:'bookingman',
            component:BookingMan
          },
          {
            path:'meetingbook',
            component: MeetingBook
          },
          {
            path:'meetingman',
            component: MeetingMan
          },
          {
            path:'meetingrec',
            component: MeetingRec
          },
          {
            path:'meetingser',
            component: MeetingSer
          },
          {
            path:'meetingsign',
            component: MeetingSign
          }
        ]
      },
    ]
  },
  {
    path:'/my',
    component: SysMain,
    children:[
      {
        path: 'mycheck',
        children:[
          {
            path:'check',
            component:Check
          },
          {
            path:'checkdone',
            component: Checkdone
          }
        ]
      },
      {
        path: 'mynews',
        component: Mynews
      },
      {
        path: 'documentselect',
        component: DocumentSelect
      },
    ]
  },
  {
    path: '/account',
    component: SysMain,
    children: [
      {
        path: 'manage',
        children: [
          {
            path: 'chuchai',
            component: ChuChai
          },
          {
            path: "richang",
            component: RiChang
          }
        ]
      },
      {
        path: 'Butieman',
        children: [
          {
            path: 'pay',
            component: Pay
          },
          {
            path: "overtimepay",
            component: Overtimepay
          },
          {
            path: "gold",
            component: Gold
          },
          {
            path: "externalstaff",
            component: Externalstaff
          },
          {
            path: "paylist",
            component: Paylist
          }
        ]
      },
      {
        path: 'monthaccount',
        component: Monthaccount
      }
    ]
  },
  {
    path: '/sum',
    component: SysMain,
    children: [
      {
        path: 'appearsum',
        component: Appearsum
      },
      {
        path: 'repairsum',
        children:[
          {
            path: 'maintenanceanalysis',
            component: MaintenanceAnalysis
          },
          {
            path: 'maintenancelist',
            component: MaintenanceList
          }
        ]
      },
      {
        path: 'foodsum',
        component: Foodsum
      }
    ]
  },
  {
    path: '/manageman',
    component: SysMain,
    children: [
      {
        path: 'shanggang',
        children:[
          {
            path: 'contractors',
            component: Contractors
          },
          {
            path: 'external',
            component: External
          },
          {
            path: 'excontract',
            component: ExContract
          },
          {
            path: 'contract',
            component: Contract
          },
          {
            path: 'holiday',
            component: Holiday
          },
          {
            path: 'door',
            component: Door
          }
        ]
      },
      {
        path: 'chujing',
        children:[
          {
            path: 'documents',
            component: Documents
          },
          {
            path: 'sumtime',
            component: Sumtime
          },
          {
            path: 'relatives',
            component: Relatives
          },
          {
            path: 'giftman',
            component: Giftman
          },
          {
            path: 'signature',
            component: Signature
          },
          {
            path: 'out',
            component: Out
          }
        ]
      },
      {
        path: 'chuqin',
        children:[
          {
            path: 'attendance',
            component: Attendance
          },
          {
            path: 'goout',
            component: Goout
          },
          {
            path: 'overtime',
            component: Overtime
          },
          {
            path: 'police',
            component: Police
          },
          {
            path: 'leave',
            component: Leave
          },
          {
            path: 'cancelleave',
            component: Cancelleave
          }
        ]
      },
      {
        path: 'wage',
        children:[
          {
            path: 'wagesum',
            component: Wagesum
          }
        ]
      },
      {
        path: 'jiaojie',
        children:[
          {
            path: 'jiaojieman',
            component: Jiaojieman
          },
          {
            path: 'ligangman',
            component: Ligangman
          }
        ]
      }
    ]
  }





]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router